<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Arrays
 *
 * @author Sedat Sevgili
 */
class Arrays {
    //put your code here
    
    public static function equals($arr1, $arr2) {
        $_arr1 = clone $arr1;
        $_arr2 = clone $arr2;
        sort($_arr1);
        sort($_arr2);
        $l1 = count($_arr1);
        $l2 = count($_arr2);
        if($l1 > $l2) {
            $diff = array_diff($_arr1, $_arr2);
        } else {
            $diff = array_diff($_arr2, $_arr1);
        }
        if(count($diff) == 0) {
            return true;
        }
        return false;
    }
    
}